package com.xhs.service.impl;

import com.alibaba.fastjson2.JSON;
import com.xhs.dto.request.SendParams;
import com.xhs.message.ReturnResult;
import com.xhs.service.SkywalkingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @desc:
 * @projectName: spring-boot-skywalking
 * @author: xhs
 * @date: 2024-06-17 017 13:14
 * @version: JDK 1.8
 */
@Slf4j
@Service
public class SkywalkingServiceImpl implements SkywalkingService {

    /**
     * 测试将日志上报到Skywalking服务
     *
     * @param param 入参
     * @return ReturnResult<Object>
     */
    @Override
    public ReturnResult<Object> send(SendParams param) {
        log.info("<--------------:{}-------------->", JSON.toJSONString(param));
        return ReturnResult.success(param);
    }
}
